package com.client.service.impl;

import com.client.pojo.FlowerUser;
import com.client.mapper.FlowerUserMapper;
import com.client.service.FlowerUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 晚云
 * @since 2023-09-12
 */
@Service
public class FlowerUserServiceImpl extends ServiceImpl<FlowerUserMapper, FlowerUser> implements FlowerUserService {

    @Autowired
    private FlowerUserMapper flowerUserMapper;

    /**
     * 用户登录
     *
     * @param flowerUser
     * @return
     */
    @Override
    public String selectByAccountAndPassWord(FlowerUser flowerUser) {
        String userId = flowerUserMapper.selectByAccountAndPassWord(flowerUser.getUserAccount(), flowerUser.getUserPassword());
        return userId;
    }
}
